import React from 'react';
import {observer, inject} from 'mobx-react';
import {Link} from 'react-router-dom';

import {IMainStore} from '../../store';
import {RouteComponentProps, matchPath, Switch, Route} from 'react-router';
import {Button} from "amis";

export default inject('store')(
    observer(function ({store}: { store: IMainStore } & RouteComponentProps) {

        return (
            <div>
                <div className={`a-Layout-headerBar`}>
                    <div className="hidden-xs p-t-sm pull-right px-2">
                        <Link to={'/pageManage'}>
                            <Button size="sm" className="m-r-xs" level="info">
                                管理页面
                            </Button>
                        </Link>
                    </div>
                </div>
            </div>
        );
    })
);

